Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent crashing on servers #627

Open
wants to merge 1 commit into
base: 1.20.1-new
Choose a base branch
from

Conversation

JulianVennen
Copy link

@JulianVennen JulianVennen commented May 11, 2024

When attempting to start a server with oculus installed it causes a crash because oculus attempts to access client-only code.

According to the forge documentation client-only mods should work on servers: https://docs.minecraftforge.net/en/1.20.x/concepts/sides/#writing-one-sided-mods

This PR changed oculus to only listen for events on the client and therefore prevents this kind of crash.

This supersedes #367.

@dima-dencep dima-dencep linked an issue May 14, 2024 that may be closed by this pull request
@JulianVennen
Copy link
Author

Hey, any update on this?

@dima-dencep
Copy link
Collaborator

There are unnecessary changes in this PR that I don't want to merge

@JulianVennen
Copy link
Author

Which unnecessary changes exactly are you referring to?

I think I accidentally clicked optimize imports in my IDE, which removed a few imports that were unrelated to the PR. Is that what you mean?

@Veynam
Copy link

Veynam commented Jul 23, 2024

Also waiting for updates

@JulianVennen
Copy link
Author

I rebased the changes to resolve conflicts and undid any unnecessary changes to the import.
Please let me know if there's anything else you want me to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow forge server to start up with this mod / prevent crash
3 participants